x86/shadow: Change the gating of shadow heuristics
authorAndrew Cooper <andrew.cooper3@citrix.com>
Sat, 7 Feb 2015 13:54:47 +0000 (13:54 +0000)
committerTim Deegan <tim@xen.org>
Fri, 20 Feb 2015 14:47:08 +0000 (14:47 +0000)
commit99666cb632d969dd8d9b192c60f4984249a64fb8
tree9a108a751106fc0a782e6fda96e50aaa653f8aa7
parentfda293443a0dcb8cdc8ff05cb582ff5e0523609e
x86/shadow: Change the gating of shadow heuristics

Each of these functions will have their vcpu paramters replaced with domain
parameters because they are part of domain-generic rather than vcpu specific
codepaths, which means that the use of 'v' will have to change.  'current' can
be used to obtain a vcpu when in an appropriate context.

The 'curr->domain == d' test is less restrictive than 'v == current'.  The end
result is still safe as the code still only runs in the context of the correct
domain, but is now valid to run in cases where previously 'v' was some other
vcpu in the same domin.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/shadow/common.c
xen/arch/x86/mm/shadow/multi.c